import * as config from "config";
const imagesUrl = config.get('imagesUrl');

export function getImgurl(url: string): string {
    if (url && url.startsWith('http'))
        return url;
    if (!url) {
        return "";
    }
    return imagesUrl + '/' + url;
}